<html>
<head><meta charset="utf-8"><title>Cross-built rust ends up with native rust-llvm-dwp · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html">Cross-built rust ends up with native rust-llvm-dwp</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234913093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234913093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234913093">(Apr 16 2021 at 20:07)</a>:</h4>
<p>Hi! I'm trying to update Void Linux's Rust toolchain to 1.51.0, we were on 1.48.0 previously.</p>
<p>We cross compile to all of our ARM targets (arm, armhf and aarch64), and I'm having some issues with <code>rust-llvm-dwp</code>, which appears to be a binary for the build machine, even though it's being installed. Since we strip all binaries that go into our packages, the arch specific <code>strip</code> errored out and I managed to notice the issue.</p>
<div class="codehilite"><pre><span></span><code>~/v/void-packages rust [~4] 😨 ➜ file masterdir-disk/destdir/aarch64-linux-musl/rust-std-1.51.0/usr/lib/rustlib/aarch64-unknown-linux-musl/bin/rust-llvm-dwp
masterdir-disk/destdir/aarch64-linux-musl/rust-std-1.51.0/usr/lib/rustlib/aarch64-unknown-linux-musl/bin/rust-llvm-dwp: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=fa1d9b740944c56af5b30bb6194cc7001eec7251, stripped
</code></pre></div>
<p>Our build recipe + patches can be seen in my PR here <a href="https://github.com/void-linux/void-packages/pull/30259">https://github.com/void-linux/void-packages/pull/30259</a></p>



<a name="234913434"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234913434" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234913434">(Apr 16 2021 at 20:10)</a>:</h4>
<p>It appears this binary didn't exist at all in 1.48.0, to the point that <code>/usr/lib/rustlib/$target/bin</code> isn't even a directory...</p>



<a name="234913634"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234913634" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234913634">(Apr 16 2021 at 20:12)</a>:</h4>
<p>So I guess what I'm asking for is some guidance on how to make this file be installed correctly, or if it's ok to remove it and let it be solved at a later point in time.</p>



<a name="234913823"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234913823" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234913823">(Apr 16 2021 at 20:13)</a>:</h4>
<p>It should be possible to just not install it, I think -- it's quite possible we're copying it from the wrong llvm</p>



<a name="234913864"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234913864" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234913864">(Apr 16 2021 at 20:13)</a>:</h4>
<p>but it's only used for split dwarf which is unstable on linux, so shouldn't be needed for your use case I believe</p>



<a name="234914532"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234914532" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234914532">(Apr 16 2021 at 20:19)</a>:</h4>
<p>Ok, I will remove it for now, thanks!</p>



<a name="234914560"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234914560" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234914560">(Apr 16 2021 at 20:19)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116122">simulacrum</span> <a href="#narrow/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp/near/234913823">said</a>:</p>
<blockquote>
<p>It should be possible to just not install it, I think -- it's quite possible we're copying it from the wrong llvm</p>
</blockquote>
<p>I guess it would help if I open <em>an issue</em> about it?</p>



<a name="234914691"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234914691" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234914691">(Apr 16 2021 at 20:20)</a>:</h4>
<p>Is there a chance the official toolchains could have the same issue? If any of them is cross built and there isn't a lint for tarball contents...</p>



<a name="234915229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234915229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234915229">(Apr 16 2021 at 20:24)</a>:</h4>
<p>I suspect it's quite possible</p>



<a name="234915243"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234915243" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234915243">(Apr 16 2021 at 20:24)</a>:</h4>
<p>(just largely undetected)</p>



<a name="234915255"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/234915255" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#234915255">(Apr 16 2021 at 20:24)</a>:</h4>
<p>Please do file an issue.</p>



<a name="235432134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Cross-built%20rust%20ends%20up%20with%20native%20rust-llvm-dwp/near/235432134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Érico Nogueira Rolim <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Cross-built.20rust.20ends.20up.20with.20native.20rust-llvm-dwp.html#235432134">(Apr 20 2021 at 23:33)</a>:</h4>
<p>Turns out <a href="https://github.com/rust-lang/rust/issues/81949">https://github.com/rust-lang/rust/issues/81949</a> existed, and I guess we'll find out with 1.52.0 if it was enough to solve my issue...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>